import math
from math import *
class Cuadratica:
	
	def __init__(self,a,b,c):
		self.__a=a
		self.__b=b
		self.__c=c
		self.__raiz1=None
		self.__raiz2=None
	
	def getRaiz1(self):
		if self.__a!=0:
			resta=(self.__b)**2-4*self.__a*self.__c
			if resta > 0:
				self.__raiz1=(-(self.__b)+sqrt(resta))/2*self.__a
				return self.__raiz1
			else:
				return "No hay raiz 1"
		else:
			return "A es igual a 0"
	
	def getRaiz2(self):
		if self.__a!=0:
			resta=(self.__b)**2-4*self.__a*self.__c
			if resta > 0:
				self.__raiz2=(-(self.__b)-sqrt((self.__b)**2-4*self.__a*self.__c))/2*self.__a
				return self.__raiz2
			else:
				return "No hay raiz 2"
		else:
			return "A es igual a 0"
